//
//  WelcomeView.m
//  AiShangJinFuSalesman
//
//  Created by AiShangTong on 2017/7/5.
//  Copyright © 2018年 AiShangTong. All rights reserved.
//

#import "WelcomeView.h"

@interface WelcomeView ()

@property (nonatomic, weak) UIImageView *imageView;

@end

@implementation WelcomeView

- (UIImageView *)imageView
{
    if (_imageView == nil) {
        UIImageView *imageV = [[UIImageView alloc] init];
        _imageView = imageV;
        _imageView.userInteractionEnabled = YES;
        [self.contentView addSubview:imageV];
    }
    return _imageView;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imageView.frame = self.bounds;
}

- (void)setImage:(UIImage *)image
{
    _image = image;
    self.imageView.image = image;
}


@end
